To be able to edit code and run cells, you need to run the notebook yourself. Where would you like to run the notebook?

This notebook takes about 30 seconds to run.

In the cloud (experimental)

Binder is a free, open source service that runs scientific notebooks in the cloud! It will take a while, usually 2-7 minutes to get a session.

On your computer

(Recommended if you want to store your changes.)

  1. Copy the notebook URL:
  2. Run Pluto

    (Also see: How to install Julia and Pluto)

  3. Paste URL in the Open box

Frontmatter

If you are publishing this notebook on the web, you can set the parameters below to provide HTML metadata. This is useful for search engines and social media.

Author 1
👀 Reading hidden code
sleep(3)
3.0 s
👀 Reading hidden code
using PlutoUI
201 ms
👀 Reading hidden code
Enter cell code...
89.1 μs
👀 Reading hidden code
y = [3,4,i]
17.4 ms
👀 Reading hidden code
@bind N2 Slider(0:0.000000000001:1)
457 ms
👀 Reading hidden code
[1:5..., N2, 70:800...]
39.3 ms
0.33258754090170506
👀 Reading hidden code
N = rand()
14.7 μs
👀 Reading hidden code
mutable struct A
x
y
end
885 μs
👀 Reading hidden code
begin
a = A(6,6)
a.x = [1,a]
a
end
16.8 ms
x = [Ref(1), a, d,y,n,[1,N],60:300...]
👀 Reading hidden code
67.2 ms
[x,x]
👀 Reading hidden code
14.6 μs
Dict(i => i for i in 1:100)
👀 Reading hidden code
96.0 ms
0xfa63681ed338f744
objectid(x)
👀 Reading hidden code
11.8 μs
html"""
<script>
const x = html`<img src="https://i.imgur.com/2j12AxI.jpg">`

var i = 0
setInterval(() => {
x.setAttribute("height", 200 + 200*Math.sin(i / 5))
i++
}, 500)

return x
</script>
"""
👀 Reading hidden code
112 μs
d = Dict(1 => 2, i => i, [3,4]=>[5,6])
👀 Reading hidden code
135 ms
(1,2)
👀 Reading hidden code
9.8 μs
# map(identity, zip(eachindex(n), n))
👀 Reading hidden code
10.3 μs
n = (a=1, b=2)
👀 Reading hidden code
17.9 μs
i
👀 Reading hidden code
10.4 μs

👀 Reading hidden code
70.8 μs
1
2
1 => 2
👀 Reading hidden code
12.1 μs
"/tmp/jl_ffTikM"
f = download("https://fonsp.com/img/doggoSmall.jpg?raw=true")
👀 Reading hidden code
181 ms
"/tmp/jl_tYQvod"
f2 = download("https://i.imgur.com/2j12AxI.jpg")
👀 Reading hidden code
114 ms
i = Show(MIME"image/jpg"(), read(f))
👀 Reading hidden code
3.0 ms
i2 = Show(MIME"image/jpg"(), read(f2))
👀 Reading hidden code
85.4 μs